﻿<?php


	//Declaración de includes
	include_once "../funciones.php";
	include_once "../menus.inc";

	//Variables Globales

	//Cargando página
	iniciar();

    cargarDivLogo();
   	cargarDivMenu();
    cargarDivCabecera();
	echo "<form name='formulario' action=insertar.php method='POST' onsubmit='return validar()'>";
?>
    <div id='divContenido'>
<?php

    echo "<table id='tablaListado'>";
	echo "<tr><td>Tipo:</td><td><select id='TIPO' name='TIPO' onChange='mostrarCampoTalla()'>";
    echo "<option value='' selected>---------</option>";
	echo "<option value='1'>Deportivo</option>";
    echo "<option value='2'>Textil</option>";
	echo "</select></td></tr>;";
    echo "<tr><td>Material:</td><td><input type=text id='MATERIAL' name='MATERIAL'></td></tr>";
	echo "<tr><td>Cantidad:</td><td><input type=text id='CANTIDAD' name='CANTIDAD'></td></tr>";
	echo "<tr id='insertarTipo' style='visibility:hidden'><td>TALLA:</td><td><select id='TALLA' name='TALLA'>";
	getSelectTalla();
	echo "</select></td></tr>";
    echo "<tr><td colspan=2><button type='submit'>Enviar</button></td></tr>";
    echo "</table>";
    echo "</form>";
	$mensaje="";
	echo "<div id='divModificar'>".$mensaje."</div>";

?>
     </div>
<?php

	finalizar();
   
?>